﻿@using BadmintonBuddy.Controllers
@model BadmintonBuddy.Models.UserDetailModel

@{
    ViewBag.Title = "UserAdditionalInfo";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>UserAdditionalInfo</h2>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?libraries=places&sensor=false"></script>
@using (Html.BeginForm("UserDetails", "User", new { RetrunUrl = ViewBag.ReturnUrl}))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>UserDetail</legend>        
        <div class="editor-label">
            @Html.LabelFor(model => model.CityName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CityName)
            @Html.ValidationMessageFor(model => model.CityName)
        </div>
        @Html.HiddenFor(model=> model.UserId)

        @Html.HiddenFor(model=> model.StateName)
        @Html.HiddenFor(model=> model.CountryName)

        @Html.RadioButtonForEnum(model => model.Level)
        
       @*<input id="Level" name="Level" type="range" min="1" max="4" step="1" />*@
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    <script type="text/javascript" src="~/Scripts/Places.js"></script>
}
